const handleSuccess = (ctx, { status, message, code, data }) => {
  ctx.response.status = status
  ctx.body = { message, code, data }
}
const handleFail = (ctx, { status, message, code, data }) => {
  ctx.response.status = status
  ctx.body = { message, code, data }
}
module.exports = {
  handleSuccess,
  handleFail
}